<template>
    <view>
        <view class="head">
            <view class="head-picture">
                <open-data type="userAvatarUrl"></open-data>
            </view>
            <view class="nickname">
                <open-data type="userNickName"></open-data>
            </view>
        </view>
        <view class="content">
            <!-- <uni-list>
                <uni-list-item clickable v-for="(item, index) in navList" :key="item.id" @click="goToLink(index)"
                    :show-extra-icon="true" :extra-icon="item.icon" :title="item.title" />
            </uni-list> -->
        </view>
    </view>
</template>
<style>
    .head {
        background-color: #FFFFFF;
        padding: 40upx;
        margin-bottom: 30upx;
        display: flex;
        flex-direction: row;
        align-items: center
    }

    .head-picture {
        width: 100upx;
        height: 100upx;
        background: #fff;
        border: 5upx solid #fff;
        border-radius: 50%;
        overflow: hidden;
    }

    .nickname {
        margin-left: 30upx;
        font-size: 36upx;
        font-weight: 500;
        text-align: left;
    }
</style>
<script>
   
    export default {
       
        data() {
            return {
                

            }
        },
        onShareAppMessage(res) {
            if (res.from === 'button') { // 来自页面内分享按钮
                console.log(res.target)
            }
            return {
                title: '这里有好多饿了么美团优惠券，快来领券吧~~',
                path: '/pages/index/index',
                imageUrl: 'https://lajun-chihe.oss-cn-beijing.aliyuncs.com/chihe-share.jpeg'
            }
        },

        onShareTimeline: function() {
            return {
                title: '这里有好多饿了么美团优惠券，快来领券吧~~',
                query: 'where=share',
                imageUrl: 'https://lajun-chihe.oss-cn-beijing.aliyuncs.com/chihe-share.jpeg'
            }
        },
        methods: {
            

        }
    }
</script>

<style>

</style>
